scoreboard players set #ConsumePower temp 1
execute store result score #ConsumePowerAdd temp run data get entity @s data.ConsumePowerAdd
execute store result storage vs:system temp.powerConsume.value int 1.0 run scoreboard players operation #ConsumePower temp += #ConsumePowerAdd temp

function vs:system/game_ctrol/stream_barrier_spawner/power/remove with storage vs:system temp.powerConsume

scoreboard players reset #ConsumePower temp
scoreboard players reset #ConsumePowerAdd temp
data remove storage vs:system temp.powerConsume